import {COLLEGE} from '@/services/api'
import {request, METHOD} from '@/utils/request'

export async function listCollegeByPage(currentPage, size) {
    return request(COLLEGE, METHOD.GET, {
        currentPage: currentPage,
        size: size
    })
}

export async function totalCollege() {
    return request(COLLEGE+"/total", METHOD.GET)
}

export async function deleteCollege(id) {
    return request(COLLEGE, METHOD.DELETE, {
        id: id
    })
}

export async function editCollege(id, name) {
    return request(COLLEGE, METHOD.POST, {
        id: id,
        name: name
    })
}
